package com.springboot.demo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author wubc683
 * @desc
 * @date 2021-11-23 14:14
 */
@Data
public class ComponentPosition {
    @ApiModelProperty(value = "报表左边缘在页面中的坐标,页面坐标左上角0，0,坐标向右向下增加，横坐标按12栅格划分",required = true)
    @NotNull(message = "左边界不能为null")
    private Integer leftPos;
    @ApiModelProperty(value = "报表右边缘在页面中的坐标,值域0~12",required = true)
    @NotNull(message = "右边界不能为null")
    private Integer rightPos;
    @ApiModelProperty(value = "报表上边缘在页面中的坐标,值域0~32767像素",required = true)
    @NotNull(message = "上边界不能为null")
    private Integer topPos;
    @ApiModelProperty(value = "报表下边缘在页面中的坐标,值域0~32767像素",required = true)
    @NotNull(message = "下边界不能为null")
    private Integer downPos;
}
